<template>
  <div>
    <!-- 轮播图 -->
    <el-carousel :interval="3000" arrow="always" class="Rota" height="360px">
      <el-carousel-item v-for="(item, index) in imgs" :key="index">
        <img class="pag" :src="item.url" alt="图片" />
      </el-carousel-item>
    </el-carousel>
    <Homecontent />
  </div>
</template>

<script>
import Homecontent from "./Homecontent.vue";
export default {
  components: { Homecontent },
  data() {
    return {
      imgs: [
        { url: require("../page/01.jpg") },
        { url: require("../page/02.jpg") },
        { url: require("../page/03.jpg") },
        { url: require("../page/05.jpg") },
      ],
    };
  },
  created() {
    
  },
  methods: {
  
  },
};
</script>

<style lang="scss" scoped>
.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
.Rota {
  margin: 63px auto;
  width: 1200px;
  cursor: pointer;
}
.page {
  width: 1200px;
  height: 360px;
}
.pag {
    width: 1200px;
    height: 360px;
    object-fit: cover;
  }
</style>
